import axios from "axios";
export const fetchData = () =>
  axios
    .get("/province.json")
    .then((res) => res.data.data.filter((item) => item.parentId === 0));
export const fetchCity = (provinceId) =>
  axios
    .get("/province.json")
    .then((res) =>
      res.data.data.filter((item) => item.parentId === provinceId)
    );
